package agg

import "strconv"

type Judge struct {
	I 	int
	Str string
}
//judge := &agg.Judge{ I: 8, Str: "6"}
func (j *Judge) Run() (p bool) {
	b, error := strconv.Atoi(j.Str)
	switch {
		case error != nil :
			j.Str 	= "输入的不是数字"
		case b < j.I 	  :
			j.I 	= b
			p 	 	= true
		default:
			j.Str 	= "输入的数字不在此范围"
	}
	return p
}